// -----------------------------------------------------------------------------
// Generate By Furion Tools v1.6.0                            
// -----------------------------------------------------------------------------

using Furion.DatabaseAccessor;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Metadata.Builders;
using System;
using System.Collections.Generic;

#nullable disable

namespace iemtm.WeChat.Core
{
    public partial class AlertHisItem : IEntity<MasterDbContextLocator>, IEntityTypeBuilder<AlertHisItem, MasterDbContextLocator>
    {

        public long Id { get; set; }
        public string dtuId { get; set; }
        public DateTime? dtOccur { get; set; }
        public string dtuAlias { get; set; }
        public string alertStr { get; set; }
        public string alertId { get; set; }
        public string AreaCode { get; set; }
        public string AreaName { get; set; }
        public string GensetNum { get; set; }
        public string Extension { get; set; }
        public double? BDLocLat { get; set; }
        public double? BDLocLgt { get; set; }
        public double? GPSLocLat { get; set; }
        public double? GPSLocLgt { get; set; }
        public string GPSposition { get; set; }
        public string PrjCode { get; set; }
        public string PrjName { get; set; }
        public string LAC { get; set; }
        public string CellID { get; set; }
        public string BaseStationName { get; set; }
        public string BaseStationAddr { get; set; }
        public string CompanyCode { get; set; }
    
        public void Configure(EntityTypeBuilder<AlertHisItem> entityBuilder, DbContext dbContext, Type dbContextLocator)
        {
                

                entityBuilder.Property(e => e.AreaCode).HasMaxLength(50);

                entityBuilder.Property(e => e.AreaName).HasMaxLength(50);

                entityBuilder.Property(e => e.BaseStationAddr).HasMaxLength(300);

                entityBuilder.Property(e => e.BaseStationName).HasMaxLength(300);

                entityBuilder.Property(e => e.CellID).HasMaxLength(20);

                entityBuilder.Property(e => e.CompanyCode).HasMaxLength(50);

                entityBuilder.Property(e => e.Extension).HasMaxLength(20);

                entityBuilder.Property(e => e.GPSposition).HasMaxLength(50);

                entityBuilder.Property(e => e.GensetNum).HasMaxLength(50);

                entityBuilder.Property(e => e.LAC).HasMaxLength(20);

                entityBuilder.Property(e => e.PrjCode).HasMaxLength(50);

                entityBuilder.Property(e => e.PrjName).HasMaxLength(100);

                entityBuilder.Property(e => e.alertId).HasMaxLength(100);

                entityBuilder.Property(e => e.alertStr).HasMaxLength(1000);

                entityBuilder.Property(e => e.dtOccur).HasColumnType("datetime");

                entityBuilder.Property(e => e.dtuAlias).HasMaxLength(80);

                entityBuilder.Property(e => e.dtuId).HasMaxLength(20);
        }

    }
}

